package com.tuanzi.loan.business.service.templateConf;

import com.tuanzi.loan.business.entity.templateConf.LoanApiModelItemEntity;
import com.tuanzi.loan.business.entity.templateConf.LoanApiModelItemOptionEntity;
import com.tuanzi.loan.business.entity.templateConf.LoanApiModelItembasisEntity;
import com.tuanzi.loan.business.entity.templateConf.LoanApiModelPageEntity;
import com.tuanzi.loan.business.entity.templateConf.LoanApiModelValiRuleEntity;
import com.tuanzi.loan.business.entity.templateConf.LoanApiModelValidateEntity;
import com.tuanzi.loan.business.entity.templateConf.LoanApiThirdEntity;
import com.tuanzi.loan.core.service.CommonService;

import java.util.List;


/**
 * 资料填写模板项配置
 */
public interface ActivityItemService extends CommonService<LoanApiModelItemEntity, Long> {

	//模板
	List<LoanApiModelItemEntity> findByApiId(Long apiId);
	void deleteByApiId(Long apiId);

	//模板一级项
	List<LoanApiThirdEntity> getThirdList(); //甲方列表
	List<LoanApiModelPageEntity> getModelPageList(); //栏目列表
	List<LoanApiModelItembasisEntity> getModelItemBasisList(); //所有一级可选项列表
	List<LoanApiModelItembasisEntity> getModelItemBasisListByApiId(Long apiId); //模板项列表的标题列表
	LoanApiThirdEntity findByThirdId(Long thirdId); //甲方

	//模板二级项
	List<LoanApiModelItemOptionEntity> getModelItemOptionListByItemId(Long itemId); //模板二级项列表
	void saveModelItemOption(LoanApiModelItemOptionEntity entity);
	void deleteModelItemOptionById(Long id);

	//模板项校验规则
	List<LoanApiModelValiRuleEntity> getModelValiRuleListByItemId(Long itemId); //模板项检验规则列表
	List<LoanApiModelValidateEntity> getModelValidateList(); //检验规则列表
	void saveModelValiRule(LoanApiModelValiRuleEntity entity);
	void deleteModelValiRuleById(Long id);


}
